package cho05;

/**
 * Created by 春旺 on 2017/4/3.
 */
import java.util.Scanner;
public class BoxTest56
{
    public static void main(String[] args)
    {
        int d,a, b, c;
        String another = "y";
        while(another.equalsIgnoreCase("y"))
        {
            System.out.println("Enter three number(length/width/height):");
            Scanner scan = new Scanner(System.in);
            a = scan.nextInt();
            System.out.println();
            b = scan.nextInt();
            System.out.println();
            c = scan.nextInt();
            Box56 box = new Box56();
            box.OutBox(a, b, c);
            System.out.println("Please enter 0/1(0-empty/1-full）；");
            d = scan.nextInt();

            if (box.look(d)) {
                System.out.println("The box is empty");
            } else {
                System.out.println("The box is full");
            }
            System.out.println("Do you want to enter anther box(y/n):");
            another = scan.nextLine();
        }
    }
}
